package band.wukong.practice.springboot.spring4.basic.event;

import band.wukong.practice.springboot.spring4.ext.logback.LogbackLoader;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author wukong(wukonggg@139.com)
 */
public class SomeApplication {

    public static void main(String[] args) {
        LogbackLoader.load();
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(SomeConfig.class);
        SomePublisher publisher = context.getBean(SomePublisher.class);
        publisher.publish("鸟鸣山更幽");
        context.close();
    }
}
